package com.hc.app.batchcache;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Arrays;

/**
 * @Author: huangcheng
 * @CreateTime: 2024-12-09  09:27
 * @Description:
 * @Version: 1.0
 */
@RestController
@RequestMapping("/batchcache")
public class BatchCacheController {
    @Autowired
    private RedisCache tableCach;
    @GetMapping("/redis")
    public String testRedis(){
        return tableCach.getBatch(Arrays.asList(6,7)).toString();
    }

    @GetMapping("/local")
    public String testLocal(){
        return tableCach.getBatch(Arrays.asList(6,7)).toString();
    }
}
